package com.fengke.dao.model;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class AdminModel extends BaseEntity {
	private static final long serialVersionUID = -1873178303911001164L;
	/** 用户名 */
	private String username;
	/** 密码 */
	private String password;
	/** 姓名 */
	private String name;
	/** E-mail */
	private String email;
	/** 联系地址*/
	private String address;
	/** 部门 */
	private String department;
	/** 申请单位*/
	private String company;
	/** 身份证号*/
	private String idNum;
	/** 证件号*/
	private String paperNum;
	/** 手持身份证照片*/
	private String idHandsImg;
	/** 身份证正面*/
	private String idFrontImg;
	/** 身份证背面*/
	private String idBackImg;
	/** 联系电话*/
	private String phoneNum;
	/** 审核是否通过了 */
	private Boolean isEnabled;
	/** 是否锁定 */
	private Boolean isLocked;
	/** 锁定日期 */
	private Date lockedDate;
	/** 连续登录失败次数 */
	private Integer loginFailureCount;
	/** 最后登录日期 */
	private Date loginDate;
	/** 最后登录IP */
	private String loginIp;
	private boolean hasEmailAction;
	private String reason ;//审核不通过原因
	private Integer step = 1;//注册程序进入到了第几步 1,2,3,4
	private Integer type ; //申请类别，1 个人， 2企业
	private Boolean isCheck; //审核是否通过
	private String companyName ;
	private String companyCode ;
	/** 公司公章图片*/
	private String gzImg;
	private Date registerTime; //邮箱激活时间
	private String ticket; //用于邮箱激活
	/** 服务提供商 */
	private String serviceProvider;
	/** 是否拥有设置上架功能 */
	private Boolean canSetMarketable = false;
	/** 商家故事 */
	private String adminStory;
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getIdNum() {
		return idNum;
	}
	public void setIdNum(String idNum) {
		this.idNum = idNum;
	}
	public String getPaperNum() {
		return paperNum;
	}
	public void setPaperNum(String paperNum) {
		this.paperNum = paperNum;
	}
	public String getIdHandsImg() {
		return idHandsImg;
	}
	public void setIdHandsImg(String idHandsImg) {
		this.idHandsImg = idHandsImg;
	}
	public String getIdFrontImg() {
		return idFrontImg;
	}
	public void setIdFrontImg(String idFrontImg) {
		this.idFrontImg = idFrontImg;
	}
	public String getIdBackImg() {
		return idBackImg;
	}
	public void setIdBackImg(String idBackImg) {
		this.idBackImg = idBackImg;
	}
	public String getPhoneNum() {
		return phoneNum;
	}
	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}
	public Boolean getIsEnabled() {
		return isEnabled;
	}
	public void setIsEnabled(Boolean isEnabled) {
		this.isEnabled = isEnabled;
	}
	public Boolean getIsLocked() {
		return isLocked;
	}
	public void setIsLocked(Boolean isLocked) {
		this.isLocked = isLocked;
	}
	public Date getLockedDate() {
		return lockedDate;
	}
	public void setLockedDate(Date lockedDate) {
		this.lockedDate = lockedDate;
	}
	public Integer getLoginFailureCount() {
		return loginFailureCount;
	}
	public void setLoginFailureCount(Integer loginFailureCount) {
		this.loginFailureCount = loginFailureCount;
	}
	public Date getLoginDate() {
		return loginDate;
	}
	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}
	public String getLoginIp() {
		return loginIp;
	}
	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	public boolean isHasEmailAction() {
		return hasEmailAction;
	}
	public void setHasEmailAction(boolean hasEmailAction) {
		this.hasEmailAction = hasEmailAction;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public Integer getStep() {
		return step;
	}
	public void setStep(Integer step) {
		this.step = step;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Boolean getIsCheck() {
		return isCheck;
	}
	public void setIsCheck(Boolean isCheck) {
		this.isCheck = isCheck;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getCompanyCode() {
		return companyCode;
	}
	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	public String getGzImg() {
		return gzImg;
	}
	public void setGzImg(String gzImg) {
		this.gzImg = gzImg;
	}
	public Date getRegisterTime() {
		return registerTime;
	}
	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}
	public String getTicket() {
		return ticket;
	}
	public void setTicket(String ticket) {
		this.ticket = ticket;
	}
	public String getServiceProvider() {
		return serviceProvider;
	}
	public void setServiceProvider(String serviceProvider) {
		this.serviceProvider = serviceProvider;
	}
	public Boolean getCanSetMarketable() {
		return canSetMarketable;
	}
	public void setCanSetMarketable(Boolean canSetMarketable) {
		this.canSetMarketable = canSetMarketable;
	}
	public String getAdminStory() {
		return adminStory;
	}
	public void setAdminStory(String adminStory) {
		this.adminStory = adminStory;
	}
}